]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ibusCandidatePopup: Fix cursor positioning
authorRui Matos <tiagomatos@gmail.com>
Tue, 22 Jan 2013 00:46:48 +0000 (01:46 +0100)
committerRui Matos <tiagomatos@gmail.com>
Thu, 14 Feb 2013 23:26:47 +0000 (00:26 +0100)
After moving the dummy source actor, we still have to poke the
boxpointer so that it gets repositioned.

This has always been broken but went unnoticed until now since none of
the commonly used engines currently depend on this method. Thanks to
Mathieu Bridon for pointing it out.

https://bugzilla.gnome.org/show_bug.cgi?id=691902

js/ui/ibusCandidatePopup.js

index bbc65a0f9c324dd7644ffa48633974bfce27bde8..11fe7641f6658d37116e33dffbc2cd3e8234a0f0 100644 (file)
@@ -159,6 +159,8 @@ const CandidatePopup = new Lang.Class({
                              Lang.bind(this, function(ps, x, y, w, h) {
                                  this._cursor.set_position(x, y);
                                  this._cursor.set_size(w, h);
+                                 if (this._boxPointer.actor.visible)
+                                     this._boxPointer.setPosition(this._cursor, 0);
                              }));
         panelService.connect('update-preedit-text',
                              Lang.bind(this, function(ps, text, cursorPosition, visible) {